From 6d353ff96826b065b3234a3bd89f73d307843d98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 4 Nov 2025 14:40:22 +0100 Subject: [PATCH] src: remove pragma once in headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Switch existing headers to defines instead of pragma once. Signed-off-by: Álvaro Fernández Rojas --- src/odhcp6c.h | 5 ++++- src/ra.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/odhcp6c.h b/src/odhcp6c.h index 7df4d14..7970a1e 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -13,7 +13,8 @@ * */ -#pragma once +#ifndef _ODHCP6C_H_ +#define _ODHCP6C_H_ #include #include @@ -546,3 +547,5 @@ void odhcp6c_expire(bool expire_ia_pd); uint32_t odhcp6c_elapsed(void); struct odhcp6c_opt *odhcp6c_find_opt(const uint16_t code); struct odhcp6c_opt *odhcp6c_find_opt_by_name(const char *name); + +#endif /* _ODHCP6C_H_ */ diff --git a/src/ra.h b/src/ra.h index 34d8cb4..a869b5e 100644 --- a/src/ra.h +++ b/src/ra.h @@ -13,7 +13,8 @@ * */ -#pragma once +#ifndef _RA_H_ +#define _RA_H_ #include #include @@ -53,3 +54,5 @@ int ra_init(const char *ifname, const struct in6_addr *ifid, unsigned int options, unsigned int holdoff_interval); bool ra_link_up(void); bool ra_process(void); + +#endif /* _RA_H_ */ -- 2.30.2